/**
 * 系统配置
 */

export default {
	evn: 'dev', //  prod  环境配置
	port: '81',  // 启动端口
	url: 'http://127.0.0.1:81',
	dbprefix: 'xq_',
	db: {
		mongodb: { 
			cookieSecret: 'gather', 
			db: 'smdb', 
			host: '114.215.195.137',
			options: {
				user: 'admin',
				password: ''
			}
		}
	},
	// filter
	servlet: {
		admin: {
			mapping: ['/routes/controller/admin'],
			url: '/admin/'
		},
		api: {
			mapping: ['/routes/controller/api'],
			url: '/api/'
		}
	},
	filter: {
		requestFilter: {
			bin: 'routes/web/filter/requestVariableFilter',
			url: ['/api/*', '/web/*'],
		},
		loginFilter: {
			bin: 'routes/web/filter/loginFilter',
			url: ['/hsxt/*', '!/hsxt/login', '!/hsxt/web/*']
		},
		encodingFilter: {
			bin: 'routes/web/filter/encodingFilter',
			url: ['/*'],
			param: {
				encoding: 'utf-8'
			}
		}
	},
	
};